package oop.core.parsers;


import java.util.Scanner;

/**
 * used to test the formating style
 * @author srhinson
 *
 */
public class ParserPOC {
	public static String data;
	
	public static void main(String[] args){
		data="1A~2A~3A~zB~AB~cB~A~5";
		
		aParser(data);
			 
	}
	
	public static void aParser(String data){
		Scanner scanner = new Scanner(data);
		scanner.useDelimiter("A~");
		System.out.println(scanner.next());
		System.out.println(scanner.next());
		System.out.println(scanner.next());
		bParser(scanner.next());
		System.out.println(scanner.next());
	}
	
	public static void bParser(String data){
		Scanner scanner = new Scanner(data);
		scanner.useDelimiter("B~");
		System.out.println(scanner.next());
		System.out.println(scanner.next());
		System.out.println(scanner.next());
	}

}
